package com.heima.model.behavior.dtos;

import com.heima.model.common.validator.behavior.ArticleLike;
import com.heima.model.common.validator.behavior.ArticleOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class LikesBehaviorDTO {
    // 设备ID
//    @NotNull(message = "设备id不能为空", groups = ArticleLike.class)
    Integer equipmentId;
    // 文章ID
    Long articleId;
    /**
     * 喜欢操作方式
     * 0 点赞
     * 1 取消点赞
     */
//    @Size(max = 1, min = 0,message = "不允许该操作",groups = ArticleOperation.class)
    Short operation;
}